<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>联系我们 - 未来科技</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <div class="container">
            <a class="navbar-brand" href="index.html">未来科技</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="index.html">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="about.html">关于我们</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="products.html">产品服务</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="news.html">新闻动态</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="contact.html">联系我们</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 页面内容 -->
    <main class="container my-5">
        <section class="mb-5 text-center">
            <h1 class="mb-4">联系我们</h1>
            <p class="lead">我们期待与您沟通合作</p>
        </section>

        <div class="row">
            <div class="col-lg-6 mb-5 mb-lg-0">
                <h2 class="mb-4">发送消息</h2>
                <form id="contactForm" novalidate>
                    <div class="mb-3">
                        <label for="name" class="form-label">您的姓名</label>
                        <input type="text" class="form-control" id="name" required>
                        <div class="invalid-feedback">请输入您的姓名</div>
                    </div>
                    <div class="mb-3">
                        <label for="email" class="form-label">电子邮箱</label>
                        <input type="email" class="form-control" id="email" required>
                        <div class="invalid-feedback">请输入有效的邮箱地址</div>
                    </div>
                    <div class="mb-3">
                        <label for="phone" class="form-label">联系电话</label>
                        <input type="tel" class="form-control" id="phone">
                    </div>
                    <div class="mb-3">
                        <label for="subject" class="form-label">主题</label>
                        <select class="form-select" id="subject" required>
                            <option value="" selected disabled>请选择...</option>
                            <option value="product">产品咨询</option>
                            <option value="service">服务支持</option>
                            <option value="cooperation">商业合作</option>
                            <option value="other">其他</option>
                        </select>
                        <div class="invalid-feedback">请选择主题</div>
                    </div>
                    <div class="mb-3">
                        <label for="message" class="form-label">留言内容</label>
                        <textarea class="form-control" id="message" rows="5" required></textarea>
                        <div class="invalid-feedback">请输入留言内容</div>
                    </div>
                    <button type="submit" class="btn btn-primary">提交</button>
                </form>
            </div>

            <div class="col-lg-6">
                <h2 class="mb-4">联系方式</h2>
                <div class="card mb-4">
                    <div class="card-body">
                        <h3 class="h5 card-title">总部地址</h3>
                        <p class="card-text">北京市海淀区中关村南大街5号未来科技大厦18层</p>
                        <p class="card-text"><i class="bi bi-geo-alt-fill me-2"></i>邮编: 100081</p>
                    </div>
                </div>

                <div class="card mb-4">
                    <div class="card-body">
                        <h3 class="h5 card-title">联系方式</h3>
                        <p class="card-text"><i class="bi bi-telephone-fill me-2"></i>电话: 010-12345678</p>
                        <p class="card-text"><i class="bi bi-envelope-fill me-2"></i>邮箱: contact@futuretech.com</p>
                        <p class="card-text"><i class="bi bi-clock-fill me-2"></i>工作时间: 周一至周五 9:00-18:00</p>
                    </div>
                </div>

                <div class="card">
                    <div class="card-body">
                        <h3 class="h5 card-title">关注我们</h3>
                        <div class="d-flex">
                            <a href="#" class="btn btn-outline-primary me-2"><i class="bi bi-wechat"></i> 微信</a>
                            <a href="#" class="btn btn-outline-info me-2"><i class="bi bi-weibo"></i> 微博</a>
                            <a href="#" class="btn btn-outline-dark"><i class="bi bi-linkedin"></i> LinkedIn</a>
                        </div>
                    </div>
                </div>

                <div class="mt-4">
                    <div class="ratio ratio-16x9">
                        <iframe src="https://maps.google.com/maps?q=北京市海淀区中关村南大街5号&output=embed" 
                                allowfullscreen></iframe>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="bg-dark text-white py-4">
        <div class="container text-center">
            <p>&copy; 2025 未来科技有限公司. 保留所有权利.</p>
        </div>
    </footer>

    <!-- Bootstrap Icons -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script src="js/main.js"></script>
    
    <script>
        // 表单验证
        (function() {
            'use strict';
            const form = document.getElementById('contactForm');
            
            form.addEventListener('submit', function(event) {
                if (!form.checkValidity()) {
                    event.preventDefault();
                    event.stopPropagation();
                }
                
                form.classList.add('was-validated');
            }, false);
        })();
    </script>
</body>
</html>
